Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ThreadPoolBuilder can fail when resources are busy #68

Merged
merged 2 commits into from
Feb 23, 2024

Conversation

junderw
Copy link
Member

@junderw junderw commented Dec 7, 2023

Fixes #67

This is a temp fix.

Long term, we should probably maintain a single global persistent ThreadPool instead of spinning up a new pool for every request.

Copy link
Contributor

@mononaut mononaut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested ACK @ 1cb2715

I couldn't reproduce the error in #67, but this seems to run fine under heavy load.

@softsimon softsimon merged commit f78c07a into mempool Feb 23, 2024
7 checks passed
@softsimon softsimon deleted the junderw/threadpool-builder-fix branch February 23, 2024 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

crash due to WouldBlock / Resource temporarily unavailable
3 participants